import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// todo
	const d = fd.data.node.querySelector<HTMLInputElement>('[data-name="name"]');
	const v = d.value;

	const res = await nodejs<{ res: Array<{}>; }>('risk_point/zj-000001/s001', {
		risk_po_type_name: v
	});
	console.info("差的啥=》", res);

	render(fd, res, p001, 'p001', 'inner');
}
